home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXTFElementFactory.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  95 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXTFElementFactory.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXTFElementFactory_h__
  6. #define __gen_nsIXTFElementFactory_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIXTFElement; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIXTFElementFactory */
  21. #define NS_IXTFELEMENTFACTORY_IID_STR "27c10dca-2efc-416b-ae36-9794380a661e"
  22.  
  23. #define NS_IXTFELEMENTFACTORY_IID \
  24.   {0x27c10dca, 0x2efc, 0x416b, \
  25.     { 0xae, 0x36, 0x97, 0x94, 0x38, 0x0a, 0x66, 0x1e }}
  26.  
  27. class NS_NO_VTABLE nsIXTFElementFactory : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXTFELEMENTFACTORY_IID)
  31.  
  32.   /* nsIXTFElement createElement (in AString tagName); */
  33.   NS_IMETHOD CreateElement(const nsAString & tagName, nsIXTFElement **_retval) = 0;
  34.  
  35. };
  36.  
  37. /* Use this macro when declaring classes that implement this interface. */
  38. #define NS_DECL_NSIXTFELEMENTFACTORY \
  39.   NS_IMETHOD CreateElement(const nsAString & tagName, nsIXTFElement **_retval); 
  40.  
  41. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  42. #define NS_FORWARD_NSIXTFELEMENTFACTORY(_to) \
  43.   NS_IMETHOD CreateElement(const nsAString & tagName, nsIXTFElement **_retval) { return _to CreateElement(tagName, _retval); } 
  44.  
  45. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  46. #define NS_FORWARD_SAFE_NSIXTFELEMENTFACTORY(_to) \
  47.   NS_IMETHOD CreateElement(const nsAString & tagName, nsIXTFElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateElement(tagName, _retval); } 
  48.  
  49. #if 0
  50. /* Use the code below as a template for the implementation class for this interface. */
  51.  
  52. /* Header file */
  53. class nsXTFElementFactory : public nsIXTFElementFactory
  54. {
  55. public:
  56.   NS_DECL_ISUPPORTS
  57.   NS_DECL_NSIXTFELEMENTFACTORY
  58.  
  59.   nsXTFElementFactory();
  60.  
  61. private:
  62.   ~nsXTFElementFactory();
  63.  
  64. protected:
  65.   /* additional members */
  66. };
  67.  
  68. /* Implementation file */
  69. NS_IMPL_ISUPPORTS1(nsXTFElementFactory, nsIXTFElementFactory)
  70.  
  71. nsXTFElementFactory::nsXTFElementFactory()
  72. {
  73.   /* member initializers and constructor code */
  74. }
  75.  
  76. nsXTFElementFactory::~nsXTFElementFactory()
  77. {
  78.   /* destructor code */
  79. }
  80.  
  81. /* nsIXTFElement createElement (in AString tagName); */
  82. NS_IMETHODIMP nsXTFElementFactory::CreateElement(const nsAString & tagName, nsIXTFElement **_retval)
  83. {
  84.     return NS_ERROR_NOT_IMPLEMENTED;
  85. }
  86.  
  87. /* End of implementation class template. */
  88. #endif
  89.  
  90.     
  91. #define NS_XTF_ELEMENT_FACTORY_CONTRACTID         "@mozilla.org/xtf/element-factory;1"
  92. #define NS_XTF_ELEMENT_FACTORY_CONTRACTID_PREFIX  NS_XTF_ELEMENT_FACTORY_CONTRACTID "?namespace="
  93.  
  94. #endif /* __gen_nsIXTFElementFactory_h__ */
  95.